package com.xbongbong.saas.enums.dictionary;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * 数据字典-客户性质
 *
 * @author haibin.zhang
 * @version v1.0
 * @date 2019/2/26 10:43
 * @since v1.0
 */
@Getter
public enum CustomerIndividualEnum {

    // 客户性质
    ENTERPRISE_CUSTOMER("1", "enum.customerIndividual.name.enterprise_customer", "enterpriseCustomer"),
    INDIVIDUAL_CUSTOMERS("2", "enum.customerIndividual.name.individual_customers", "individualCustomers"),
    GOVERNMENT_INSTITUTIONS("3", "enum.customerIndividual.name.government_institutions", "governmentInstitutions"),
    ;

    private String code;
    private String name;
    private String attr;

    CustomerIndividualEnum(String code, String name, String attr) {
        this.code = code;
        this.name = name;
        this.attr = attr;
    }

    public String getName() {
        return I18nMessageUtil.getMessage(name);
    }
}
